﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Document_SendFile.aspx.cs" Inherits="DocumentManage_Document_SendFile" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>文档授权分发</title>
       <base target ="_self" />
     <link rel="stylesheet" href="../css/css.CSS"  type="text/css" />
	<script src="../js/calendar.js" type ="text/javascript"></script>
     <script   language="JavaScript" type ="text/javascript" >     
     function FolderClk()
     {
         var ifrmDel = document.getElementById("AddFolderPath");
				        if(ifrmDel!=null)
				        {
				          ifrmDel.click();
				        }
     }
     
      /////调用人员选择树      
      //选择人员信息
      var sChoiceID;              //所在赋值的关键字  
      var ChoiceNameInfo;         //选择的名称集合

      var ChoiceIDInfo;           //选择的ID集合
      var iChoicePoNumber1 =0;     //0表示任意多,其它的正整数为可以选择的最大个数.不可以为负数      
      var iChoicePoNumber2 =0; 
      function GetMyPersTree(obj)
      {
         var sFeatures = "dialogHeight:600px;dialogWidth:700px;resizeable:no;help:no;status:no";
         var obj = showModalDialog("../SysManage/ChoicePersInfo.aspx?ChoiceID="+obj+"&OrgType=2&OrgIDCol=0",window,sFeatures);
         if(obj != undefined)
         {
             sChoiceID = obj.sChoiceID;
             ChoiceNameInfo = obj.ChoiceNameInfo;
             ChoiceIDInfo=obj.ChoiceIDInfo;
             eval("form1.ChoiceName_"+sChoiceID+".value="+ChoiceNameInfo+";");
             eval("form1.HChoiceID_"+sChoiceID+".value="+ChoiceIDInfo+";"); 
             //eval("form1.HNewChoiceID_"+sChoiceID+".value="+ChoiceIDInfo+";"); 
             eval("form1.ChoiceName_"+sChoiceID+".blur()");
         }
      }    </script>
</head>
<body style =" background-image :url('../images/hit_bg.gif');"> 
    <% 
		Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
		Response.Expires = 0;
		Response.CacheControl = "no-cache";
	%>
    <form id="form1" runat="server">
  <table align="center" style ="width :98%;" border="0" cellpadding="0" cellspacing="0">
   <tr>
    <td style ="width :98%;">
      <fieldset align="left">
       <legend align="left"><strong>授权分发文档：</strong></legend>
        <table style ="width :100%;" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td style ="height :10;">&nbsp;</td>
          </tr>
          <tr>
            <td valign ="middle" style ="width :80;" align ="right"  >文档：</td>
            <td><asp:ListBox ID="FileList" runat="server" Height="200px" Width="390px" ></asp:ListBox></td>
            <td valign ="middle" style ="width :50;" >
                <asp:Button ID="DelFile" runat="server" CssClass ="button03" Text="删除(D)" AccessKey ="d" OnClick="DelFile_Click" /><br /><br />
                <asp:Button ID="ClearFile" runat="server" CssClass ="button03" Text="清空(C)" AccessKey ="c" OnClick="ClearFile_Click" /></td>
          </tr>
          <tr>
            <td  align ="right" >终止时间：</td>
            <td colspan ="2">
                <asp:TextBox ID="StopDT" runat="server" onclick="calendardate(this,true);"  Width ="100px"  /><font color="red">*</font></td>
          </tr>
          <tr>
            <td  align ="right" >授权给：</td>
            <td colspan ="2">
                <asp:TextBox ID="ChoiceName_1" runat="server" MaxLength="20" Width="300px"></asp:TextBox>
		        <input type="hidden" id="HChoiceID_1" runat ="server" />
   		        <img id="Img1" runat="server" src="../images/danwei.gif" width="20" height="17" onclick="GetMyPersTree(1)" alt="选择人员" /><font color="red">*</font></td>
          </tr>
          <tr>
            <td  align ="right" >备注：</td>
            <td colspan ="2">
                <asp:TextBox ID="ReadMemo" TextMode ="multiLine" Rows ="4" Columns ="50" runat="server" />备注内容小于200字</td>
          </tr>
          <tr>
            <td colspan ="3"><asp:Label id="strStatus"  runat="server" ></asp:Label></td>
          </tr>
          <tr>
            <td colspan ="3" align="center" >
               <asp:Button ID="BtnSendTo" runat="server" CssClass ="button03" AccessKey ="s"  Text ="授权" OnClick="BtnSendTo_Click" />&nbsp;&nbsp;
               <input type ="button" id="backBtn"  value ="返回" accesskey ="b"  class="button03" tabindex ="9" onclick ="window.close();" />
             </td>
          </tr>
        </table> 
       </fieldset>
     </td>
   </tr> 
  </table> &nbsp;&nbsp;
    <input type="hidden" id="HID" runat ="server"   />
    <input type="hidden" id="HPath" runat ="server"  />
       <br /> 
 </form>
</body>
</html>
